package com.indexingsystem.boss.Vo;

import java.io.Serializable;

public class MenusRelationsVo implements Serializable {
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = -2148318740837120438L;	
	
	private String menuId;
	
	private String resCategoryId;
	
	private String resCategoryName;
	
	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

    public String getResCategoryId()
    {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId)
    {
        this.resCategoryId = resCategoryId;
    }

    public String getResCategoryName()
    {
        return resCategoryName;
    }

    public void setResCategoryName(String resCategoryName)
    {
        this.resCategoryName = resCategoryName;
    }

    public MenusRelationsVo()
    {
        super();
    }

    public MenusRelationsVo(String menuId, String resCategoryId, String resCategoryName)
    {
        super();
        this.menuId = menuId;
        this.resCategoryId = resCategoryId;
        this.resCategoryName = resCategoryName;
    }

    @Override
    public String toString()
    {
        return "MenusRelationsVo [menuId=" + menuId + ", resCategoryId=" + resCategoryId
               + ", resCategoryName=" + resCategoryName + "]";
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((menuId == null) ? 0 : menuId.hashCode());
        result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
        result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        MenusRelationsVo other = (MenusRelationsVo)obj;
        if (menuId == null)
        {
            if (other.menuId != null) return false;
        }
        else if (!menuId.equals(other.menuId)) return false;
        if (resCategoryId == null)
        {
            if (other.resCategoryId != null) return false;
        }
        else if (!resCategoryId.equals(other.resCategoryId)) return false;
        if (resCategoryName == null)
        {
            if (other.resCategoryName != null) return false;
        }
        else if (!resCategoryName.equals(other.resCategoryName)) return false;
        return true;
    }    
}